<?php
require __DIR__ . '/vendor/autoload.php';

$f = new \Phpwol\Factory();
$magicPacket = $f->magicPacket();

$macAddress = 'C8:5A:CF:B0:05:81';
$broadcastIP = "192.168.1.4";
$subnet = "255.255.255.0";
$result = $magicPacket->send($macAddress, $broadcastIP, $subnet);

if ($result) {
    echo "Worked\n";
} else {
    echo "Failed\n";
}
